import java.util.Calendar;
import java.util.GregorianCalendar;


public class CalendarTest {

  public static void main(String[] args) {
    GregorianCalendar now = new GregorianCalendar();
    System.out.println(now);

    int year = now.get(Calendar.YEAR);
    int month = now.get(Calendar.MONTH);
    int day = now.get(Calendar.DAY_OF_MONTH);

    System.out.printf("%d/%d/%d\n", year, month + 1, day);
  }

}
